Q3ViewerGetState
You can use theQ3ViewerGetState
function to get the current state of a viewer object.
unsigned long Q3ViewerGetState (TQ3ViewerObject theViewer);
theViewer
- A viewer object.
DESCRIPTION
TheQ3ViewerGetState
function returns a long integer that encodes information about the current state of the viewer object specified by thetheViewer
parameter. Bits of the returned long integer are addressed using these constants, which define the viewer state flags:
enum { kQ3ViewerEmpty = 0, kQ3ViewerHasModel = 1 };IfQ3ViewerGetState
returns the valuekQ3ViewerEmpty
, there is no image currently displayed by the specified viewer object. IfQ3ViewerGetState
returns the valuekQ3ViewerHasModel
, there is an image currently displayed by the specified viewer object. You can use this information to determine whether Edit menu commands such as Cut, Clear, and Copy should be enabled or disabled.